package com.ccn.crm.service;

import com.ccn.crm.model.AfterSales;

import java.util.Date;
import java.util.List;

public interface IAfterSales {
    int deleteByPrimaryKey(Integer id);

    int insert(AfterSales record);

    AfterSales selectByPrimaryKey(Integer id);

    List<AfterSales> selectAll();

    int updateByPrimaryKey(AfterSales record);

    AfterSales selectSalesByWorkOrder(String workOrder);
    AfterSales selectSalesByTimeId(String timeId);
    AfterSales selectConsumedByName(String timebelongs);
    AfterSales selectLastWeekConsumedByName(String timebelongs);
    int updateDateByTimeId(String id , Date date);
}